<form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox');" action="__URL__/receive" method="post">
	<input type="hidden" name="pageNum" value="1" /> 
	<input type="hidden" name="numPerPage" value="{$numPerPage}" /> 
	<input type="hidden" name="_order" value="{$_REQUEST._order}" /> 
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}" />
</form>
<script type="text/javascript">
function reload182() {
    navTab.reload("__URL__/index", {});
}
function dbltable(target,rel){
    if( target == 'sid_shortmessage'){
    $.pdialog.open("__URL__/readmsg/id/"+rel+"/sid_shortmessage="+rel,"readmsg", "查看消息", { max:false, mask:true, width: 550, height: 300});
    } 
  }
</script>
<div class="pageContent" style="border-left: 1px #B8D0D6 solid; border-right: 1px #B8D0D6 solid">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" rel="add" height="300"><span>发送信息</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo" postType="string" title="你确定要删除吗？"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/modifyState/id/{sid_shortmessage}/navTabId/__MODULE__" target="ajaxTodo" callback="navTabAjaxMenu"><span>标记为已读</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="#" onclick="reload182()"><span>刷新</span></a></li>
		</ul>
	</div>


	<table class="table" width="100%" layoutH="142" rel="jbsxBox">
		<thead>
		<tr>
		    <th width="20" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>	
			<th width="60" align="center">发件人</th>
			<th width="260" align="center">内容</th>
			<th width="80" align="center">发送时间</th>
			<th width="80" align="center">状态</th>
			<th width="60" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<define name="number" value="1"/>
		<volist id="vo" name="list">
			<tr target="sid_shortmessage" rel="{$vo['id']}">
			    <td><input type="checkbox" name="ids" value="{$vo['id']}" /></td>
			    <td>{$vo['sendername']}</td>
				<td><a href="__URL__/readmsg/id/{$vo['id']}" target="dialog" rel="readmsg" mask="true">{$vo['content']}</a></td>
				<td>{$vo['sendtime']}</td>
				<td><eq name="vo['state']" value="0">未读<else/>已读</eq></td>
				<td><a class="delete" href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__" target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
				|&nbsp;<a href="__URL__/readmsg/id/{$vo['id']}/navTabId/__MODULE__" target="dialog" rel="readmsg" mask="true" height="300">阅读</a></td>
			</tr>
		</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
		<span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'jbsxBox')">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" rel="jbsxBox" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>

